home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
util
/
shell
/
cfn.lha
/
cfn
/
Notify.e
< prev
next >
Wrap
Text File
|
1992-09-02
|
668b
|
34 lines
/* Notify */
/* Skickar ett meddelande till Shuffle med process och fönster. */
MODULE 'exec/ports'
MODULE 'exec/tasks'
MODULE 'exec/types'
MODULE 'exec/nodes'
MODULE 'exec/io'
MODULE 'exec/memory'
MODULE 'intuition/screens'
MODULE 'intuition/intuition'
OBJECT memess
mess : mn
wind : LONG
process : LONG
ENDOBJECT
DEF ms:PTR TO memess
PROC main()
DEF w:PTR TO window
DEF t:PTR TO tc
DEF port:PTR TO mp
w:=Long(intuitionbase+52)
t:=FindTask(NIL)
IF (ms:=AllocMem(SIZEOF memess,MEMF_PUBLIC+MEMF_CLEAR))
ms.wind:=w
ms.process:=t
Forbid()
IF (port:=FindPort('Shuffle')) THEN PutMsg(port,ms) ELSE FreeMem(ms, SIZEOF memess)
Permit()
ENDIF
ENDPROC